package com.ai.wxy.spring.jpa.test;

import com.ai.spring.common.exception.RestControllerExceptionHandler;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.Bean;

/**
 * 运行
 *
 * @author 石头
 * @Date 2019/10/21
 * @Version 1.0
 **/
@SpringBootApplication(scanBasePackages={"com.ai.wxy.spring.jpa"})
public class ApplicationRun {
    public static void main(String[] args) {
        new SpringApplicationBuilder(ApplicationRun.class).run(args);
    }
    @Bean
    public RestControllerExceptionHandler restControllerExceptionHandler(){
        return new RestControllerExceptionHandler();
    }
}
